第6步:让这个函数返回 moon_weight 的值。

使用返回语句将让我们能在函数外部使用 moon_weight

  • 点击 ,将 Return Statement 拖动到函数内部,让它前面有一个 ····
  • return 语句中的变量更改为 moon_weight


To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)